﻿/* 
 * FileName:    IDriverClientService.cs
 * Author:      gaohongwei<gaohongwei@bjdaxiang.cn>
 * CreateTime:  2016/5/27 13:53:16
 * Version:     v1.0
 * Description:
 * */

using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using ET.Score.Service.Dtos;
namespace ET.Score.Service.Interfaces
{
    [ServiceContract]
    public interface IDriverClientService
    {
        /// <summary>
        /// 驾驶员准备完毕
        /// </summary>
        [OperationContract(IsOneWay = true)]
        void DriverHasReady(string ip);

        /// <summary>
        /// 驾驶员自己点击考核完成
        /// </summary>
        [OperationContract(IsOneWay = true)]
        void DriverFinished(string ip);
        /// <summary>
        /// 开始启动考核业务
        /// </summary>
        /// <param name="objName"></param>
        [OperationContract(IsOneWay = true)]
        void StartDriver(string objName);
        /// <summary>
        /// 分数计算测试接口
        /// </summary>
        /// <param name="dst"></param>
        /// <param name="dend"></param>
        /// <param name="objName"></param>
        /// <returns></returns>
        [OperationContract]
        List<CScoreItem> CalScoreTest(DateTime dst, DateTime dend, string objName);
        [OperationContract]
        CAdvMessage GetMessage(string objName);

        [OperationContract]
        void SetDriverTask(string TaskInfo, string objName);
        /// <summary>
        /// 发送任务
        /// </summary>
        /// <param name="drivelist"></param>
        [OperationContract]
        void SendDriveTask(List<RunContinutyTask> drivelist);

    }
}
